#ifndef __WIN_FILE_H__
#define __WIN_FILE_H__

#include "./iostub.h"

class WinFile : public IOStub
{
public:
	WinFile();
	~WinFile();

	bool OpenFile(string strPath, IoOpen openflag);
	void CloseFile();

	size_t ReadFile(byte* buffer, size_t size);
	size_t WriteFile(const byte* buffer, size_t size);
	long SeekFile(long offset, IoSeek origin);
	long TellFile();


	static bool GetFolderFiles(string strDir, vector<string>& filenames);

private:
	FILE* m_pFile;
};

#endif